<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>search</title>
    <link rel="shortcut icon" href="images/favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="css/index.css" />
</head>
<body>
<div class="page" id="app">
    <div class="content">
        <div><a href="http://localhost:9090"><img src="images/logo.png" alt=""/></a></div>
        <input type="text" ref="getValue" name="word" size="30" id="search_text">
        <input type="submit" value="search"  @click.prevent="searchKey()"  id="search_button">
    </div>
</div>
<script th:src="@{/js/axios.min.js}"></script>
<script th:src="@{/js/vue.min.js}"></script>
<script>
    new Vue({
        el: '#app',
        methods: {
            searchKey(){
                axios.get('startPage/').then(response=>{
                     self.location="menu.html"+'?data='+this.$refs.getValue.value;
                    console.log(this.$refs.getValue.value);
                    this.results=response.data;
                })
            }
        }
    });
</script>
</body>
</html>